import json

import bson

from baiduspider.model.baseItem import baseItem


class baiduItem(baseItem):
    dbname='baidu'
    colname='baike'
    title=""
    keyword =""
    desc = ""
    clazz = ""



if __name__ == '__main__':
    b=baiduItem()
    b.title='123'
    b.desc='ok'
    bdict=b.__dict__
    bsonStr =bson.BSON.encode(bdict)
    print(str(type(b)))